<?php

require_once dirname(__FILE__).'/../lib/productGeneratorConfiguration.class.php';
require_once dirname(__FILE__).'/../lib/productGeneratorHelper.class.php';

/**
 * product actions.
 *
 * @package    shop
 * @subpackage product
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class productActions extends autoProductActions
{    
     public function executeViewProductAttribute($request){
        $this->getUser()->setAttribute( 'product_attribute.filters',   
        array('product_id' => $request->getParameter('id')), 'admin_module' ); 
        $this->redirect($this->generateUrl('product_attribute')); 
    }
    
    public function executeViewProductMagazine($request){
        $this->getUser()->setAttribute( 'magazine.filters',   
        array('product_id' => $request->getParameter('id')), 'admin_module' ); 
        $this->redirect($this->generateUrl('magazine')); 
    }
    
    public function executeViewProductCattegory($request){
        $this->getUser()->setAttribute( 'product_cattegory.filters',   
        array('product_id' => $request->getParameter('id')), 'admin_module' ); 
        $this->redirect($this->generateUrl('product_catregory')); 
    }
    
    public function executeViewProductImage($request){
        $this->getUser()->setAttribute( 'product_image.filters',   
        array('product_id' => $request->getParameter('id')), 'admin_module' ); 
        $this->redirect($this->generateUrl('product_image'));
    }
}
